﻿@using CNav.Support
@model CNav.Model.RenderControlListModel
@{
    ViewBag.Title = "Render Form";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<ol>
    @Html.Partial("RenderView", Model)
</ol>

@if(Model.Controls.Count == 0)
{
   <p> No controls to render, Please design form. </p>
}

<label>&nbsp;</label>
<input type="button" value="Design" id="btnDesign" />
<input type="button" value="Back" id="btnBack" />

<script type="text/javascript">
    $(document).ready(function () {
        
        var cc = new CaseCentre();
        cc.BindButton("#btnDesign", '@Url.Content("~/FormDesign/")' + '@Model.FormID');
        cc.BindButton("#btnBack", '@Url.Content("~/CustomForm/")');
    });
</script>